package edu.yuhf.utils;

import javax.servlet.http.HttpServletRequest;

public class WebUtils {

    ////从请求字符串中获取业务指向
    public static String[] getPath(HttpServletRequest req){
        String url = req.getRequestURI().substring(1);
        //params[0]映射Servlet类，params[1]映射处理分支；params[2]及之后映射参数
        String[] params = url.split("/");
        return params;
    }

}
